package cn.stylefeng.guns.order.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.core.pojo.response.ResponseData;
import cn.stylefeng.guns.order.dto.OrderDTO;
import cn.stylefeng.guns.order.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * order 服务类
 *
 * @author aria
 * @date 2021/02/20 20:24
 */
public interface OrderService extends IService<Order> {

    /**
     * 分页查询order
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    PageResult<Order> page(OrderDTO orderDTO);

    /**
     * 查询所有order
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    List<Order> list(OrderDTO orderDTO);

    /**
     * 添加order
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    ResponseData add(OrderDTO orderDTO);

    /**
     * 删除order
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    void delete(OrderDTO orderDTO);

    /**
     * 编辑order
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    void edit(OrderDTO orderDTO);

    /**
     * 查看详情order
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    Order detail(OrderDTO orderDTO);

    Object listByUserId(OrderDTO orderDTO);

    ResponseData pay(OrderDTO orderDTO);
}